import request from '@/utils/request'

export function fetchHostDevices() {
  return request({
    url: '/iot/host-device/all-main-cabinet',
    method: 'get'
  })
}

export function fetchDeviceSnapshots(params) {
  return request({
    url: '/iot/host-device/device-snapshots/page',
    method: 'get',
    params
  })
}

export function fetchTemperatureStats(params) {
  return request({
    url: '/iot/host-device/device-temperature/stats',
    method: 'get',
    params
  })
}

export function fetchTemperatureTrend(params) {
  return request({
    url: '/iot/host-device/device-temperature/trend',
    method: 'get',
    params
  })
}
